package com.tanhua.server.exception;

/*
* 自定义业务异常类  :
*   自定义业务异常类，针对业务错误之间抛出业务异常即可
* */


import com.tanhua.model.vo.ErrorResult;
import lombok.Data;

@Data
public class BusinessException extends RuntimeException{

    private ErrorResult result;

    public BusinessException(ErrorResult result){
        super(result.getErrMessage());
        this.result=result;
    }


}
